Intersoft WebInput Documentation
How-to: Use DateTime editor events
See Also Send Feedback
Intersoft WebInput > Features and Concepts > Client Side Events > How-to: Use DateTime editor events

Glossary Item Box

WebInput.NET DateTime editor has client side events model. Every client side event handler at least has 1 parameter (controlId).

In this topic, you will learn how to use DateTime editor client side events in WebInput.

To use WebInput DateTime editor events

  1. Drag WebInput instance to WebForm.
  2. Go to WebInput DateTimeEditorClientSideEvents property.
  3. Add WebInput1_DayOnClick to OnClick event in DayEvents.
  4. Add WebInput1_HighLightOnClick to OnClick event in HighLightDayEvents.
  5. In client side add WebInput1_DayOnClick function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_DayOnClick(controlId)
    {
    alert("DayOnClick event is triggered");
    }

  6. In client side add WebInput1_HighLightOnClick function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_HighLightDayOnClick(controlId)
    {
      alert("HighLightDayOnClick event is triggered");
    }

  7. Compile and run the Project.

See Also